package com.example.demo.dao.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.dao.MessageServer;
import com.example.demo.entity.Message;
import com.example.demo.mapper.MessageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: lu
 * @Date: 2024-04-15-19:49
 * @Description:
 */
@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message> implements MessageServer {
    @Autowired
    MessageMapper messageMapper;

    @Override
    public IPage<Message> selectPage(int current, int size, Message param) {
        IPage<Message> page = new Page<>(current, size);
        return baseMapper.selectPage(page,param);
    }

}
